Skip to content

Conversation

@Gunnine
Copy link

@Gunnine Gunnine commented Jul 17, 2019

问题1:在类的初始化函数中做了headers的赋值,按照视频的方法,在调试代码中打断点查看headers的值,无法进入orgs.py文件,不确定是否此种赋值是否可行
问题2:调试代码,
if name == 'main':
r = Github(token="a62c90d5b54dd2478301fcb78c6532d068470da0")
x = r.interactions.orgs.get_interactions_limits_for_org('TUGithubAPI')
print(x.text)
运行返回TypeError: init() got an unexpected keyword argument 'token'

@zhangting85
Copy link
Contributor

有问题下次可以微信上问我,在这里问我是看不到的。或者会很晚才看到。

@zhangting85
Copy link
Contributor

你这个错误信息看上去是调用github类初始化方法时没找到正确的方法,导致了无法识别关键字参数,请提供完整代码连接和运行方法

@zhangting85 zhangting85 merged commit cf690e3 into TestUpCommunity:integration_1 Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants